<template>
    <div>
        <VEditModelForm
            ref="formModel"
            :fields="addModelFormFields"
            :value="value"
        />
        <AButton @click="openForm">打开ModelForm弹层组件</AButton>
        <VForm />
    </div>
</template>

<script>
import { addModelFormFields } from "./config";
export default {
    data() {
        return {
            addModelFormFields,
            value: {
                name: "长得帅",
            },
        };
    },
    methods: {
        openForm() {
            this.$refs.formModel?.show(1);
        },
    },
};
</script>

<style></style>
